package com.service;

import com.Imp.CuisineMapperImpl;
import com.entity.Cuisine;
import com.mapper.CuisineMapper;

import java.io.IOException;
import java.util.List;


public class CuisineService {

    CuisineMapper cuisineMapper = new CuisineMapperImpl();

    public List<Cuisine> getCuisinesByStoreId(String storeId) throws IOException {
        return cuisineMapper.getCuisinesByStoreId(storeId);
    }

    public void addCuisine(Cuisine cuisine){
        cuisineMapper.addCuisine(cuisine);
    }

    public void deleteCuisine(String cuisineId){
        cuisineMapper.deleteCuisine(cuisineId);
    }

}

